<?php
/**
 * 小程序入口
 */
defined('IN_IA') or exit('Access Denied');


if( !empty( $_SERVER['HTTP_ORIGIN']) ){
    header("Access-Control-Allow-Origin: " . $_SERVER['HTTP_ORIGIN']);
}
//跨域问题, 否则session无法保存
//        header("Access-Control-Allow-Origin: http://localhost:8080");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Allow-Methods:GET,POST");
header("Access-Control-Allow-Headers:Content-Type");
header("Content-Type: text/html;charset=utf-8");

class xmi_shopModuleWxapp extends WeModuleWxapp {
//    public $token = 'xmi_shoptoken'; //接口通信token
    public function doPageIndex() { // 接口一个名为"index"的接口

        echo 123;
//        $this->result(0, '', array('test' => 1235)); //  响应json串
    }

    public function doPageTest() {
    }
}